<?php

class IndexController extends AbstractController {

    public function indexAction() {

        // Test session
        $testSession = Session::getInstance();
        //$testSession->get('test');
        $testSession->set('test', 123);
        $testSession->send();

        echo Util_Pinyin::convert('你好吗 ');
        // print_r(DbtestModel::listAll());

        // $aa = new TestModel();
        // $aa->get();
        var_dump($this->getRequest()->generateCSRFToken());
        var_dump($this->getRequest()->isPost());
        $this->_view->word = "hello world";
        $this->_view->display('index/index.phtml');
        //or
        // $this->getView()->word = "hello world";
    }

}
